package com.wyx;

public class testSuccess {
    public static void main(String[] args) {
        String parse = parse("<120>");
        System.out.println(parse);
    }

    private static String parse(String str){
        if (str==null){
            return null;
        }
        if (str.contains("<")||str.contains(">")) {
            return str.substring(1, str.indexOf(">"));
        }
        return str;
    }
}
